const emailService = require("@/server/email");
const { sendCode } = require("@/utils/r/result");

const email = {
  async HasEmail(req, res) {
    const { email } = req.query;
    sendCode(res, await emailService.HasEmail(email));
  },
};

module.exports = email;
